namespace DataCollectionorTest.EF
{
    using System;
    using System.Data.Entity;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;

    public partial class ModelGateway : DbContext
    {
        public ModelGateway()
            : base("name=GatewayContext")
        {
        }

        public virtual DbSet<controller> controllers { get; set; }
        public virtual DbSet<received_msg> received_msg { get; set; }
        public virtual DbSet<send_ctr_cmd> send_ctr_cmd { get; set; }
        public virtual DbSet<send_data> send_data { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<controller>()
                .Property(e => e.mn)
                .IsUnicode(false);

            modelBuilder.Entity<controller>()
                .Property(e => e.feature)
                .IsUnicode(false);

            modelBuilder.Entity<received_msg>()
                .Property(e => e.received_string)
                .IsUnicode(false);

            modelBuilder.Entity<received_msg>()
                .Property(e => e.qn)
                .IsUnicode(false);

            modelBuilder.Entity<received_msg>()
                .Property(e => e.cn)
                .IsUnicode(false);

            modelBuilder.Entity<received_msg>()
                .Property(e => e.mn)
                .IsUnicode(false);

            modelBuilder.Entity<received_msg>()
                .Property(e => e.processed_flag)
                .IsUnicode(false);

            modelBuilder.Entity<received_msg>()
                .Property(e => e.processed_flag_2)
                .IsUnicode(false);

            modelBuilder.Entity<received_msg>()
                .Property(e => e.processed_flag_3)
                .IsUnicode(false);

            modelBuilder.Entity<send_ctr_cmd>()
                .Property(e => e.send_string)
                .IsUnicode(false);

            modelBuilder.Entity<send_ctr_cmd>()
                .Property(e => e.qn)
                .IsUnicode(false);

            modelBuilder.Entity<send_ctr_cmd>()
                .Property(e => e.cn)
                .IsUnicode(false);

            modelBuilder.Entity<send_ctr_cmd>()
                .Property(e => e.mn)
                .IsUnicode(false);

            modelBuilder.Entity<send_ctr_cmd>()
                .Property(e => e.rtn_9011)
                .IsUnicode(false);

            modelBuilder.Entity<send_ctr_cmd>()
                .Property(e => e.rtn_9012)
                .IsUnicode(false);

            modelBuilder.Entity<send_ctr_cmd>()
                .Property(e => e.rtn_9014)
                .IsUnicode(false);

            modelBuilder.Entity<send_data>()
                .Property(e => e.send_string)
                .IsUnicode(false);

            modelBuilder.Entity<send_data>()
                .Property(e => e.qn)
                .IsUnicode(false);

            modelBuilder.Entity<send_data>()
                .Property(e => e.cn)
                .IsUnicode(false);

            modelBuilder.Entity<send_data>()
                .Property(e => e.mn)
                .IsUnicode(false);

            modelBuilder.Entity<send_data>()
                .Property(e => e.rtn_9011)
                .IsUnicode(false);

            modelBuilder.Entity<send_data>()
                .Property(e => e.rtn_9012)
                .IsUnicode(false);

            modelBuilder.Entity<send_data>()
                .Property(e => e.rtn_9014)
                .IsUnicode(false);
        }
    }
}
